package com.ml.mall.entity.supplier;

import java.math.BigDecimal;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;

import java.util.Date;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableField;

import java.io.Serializable;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 *
 * </p>
 *
 * @author kyyang
 * Created 2021-05-29
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("sys_order_supplier")
@ApiModel(value = "SysOrderSupplier对象", description = "")
public class SysOrderSupplier implements Serializable {


    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 创建时间
     */
    @ApiModelProperty(value = "创建时间")
    @TableField(value = "create_at", fill = FieldFill.INSERT)
    private Date createAt;

    /**
     * 更新时间
     */
    @ApiModelProperty(value = "更新时间")
    @TableField(value = "update_at", fill = FieldFill.INSERT_UPDATE)
    private Date updateAt;

    /**
     * 是否删除
     */
    @ApiModelProperty(value = "是否删除")
    @TableField(value = "is_delete", fill = FieldFill.INSERT)
    @TableLogic(value = "0", delval = "1")
    private Integer isDelete;

    /**
     * 订单号：可重复；对应oid.oid
     */
    @ApiModelProperty(value = "订单号：可重复；对应oid.oid")
    @TableField("oid")
    private Long oid;

    /**
     * 卖价单号
     */
    @ApiModelProperty(value = "卖价单号")
    @TableField("supplier_oid")
    private String supplierOid;

    /**
     * 商品总额
     */
    @ApiModelProperty(value = "商品总额")
    @TableField("product_fee")
    private BigDecimal productFee;

    /**
     * 运费
     */
    @ApiModelProperty(value = "运费")
    @TableField("delivery_fee")
    private BigDecimal deliveryFee;

    /**
     * 收费调整
     */
    @ApiModelProperty(value = "收费调整")
    @TableField("adapt_fee")
    private BigDecimal adaptFee;

    /**
     * 收费调整
     */
    @ApiModelProperty(value = "收费调整")
    @TableField("tax_fee")
    private BigDecimal taxFee;

    /**
     * 订单总额
     */
    @ApiModelProperty(value = "订单总额")
    @TableField("sub_fee")
    private BigDecimal subFee;

    /**
     * 发票号
     */
    @ApiModelProperty(value = "发票号")
    @TableField("invoice_id")
    private String invoiceId;

    /**
     * 供货公司ID
     */
    @ApiModelProperty(value = "供货公司ID")
    @TableField("supplier_id")
    private Long supplierId;

    /**
     * 供货公司名称
     */
    @ApiModelProperty(value = "供货公司名称")
    @TableField("supplier_company_name")
    private String supplierCompanyName;

    /**
     * 状态
     */
    @ApiModelProperty(value = "状态")
    @TableField("state")
    private Integer state;

    @ApiModelProperty(value = "购买账号")
    @TableField("buyer_acc")
    private String buyerAcc;

    @ApiModelProperty(value = "卖家编码")
    @TableField("supplier_code")
    private String supplierCode;

    @ApiModelProperty(value = "卖家查询返回的总价")
    @TableField("sub_ori_fee")
    private BigDecimal subOriFee;

    @ApiModelProperty(value = "卖家查询的调整费用")
    @TableField("adapt_ori_fee")
    private BigDecimal adaptOriFee;

    @ApiModelProperty(value = "卖家查询的商品的总价")
    @TableField("product_ori_fee")
    private BigDecimal productOriFee;


    @ApiModelProperty(value = "卖家查询的商品的总价")
    @TableField("tax_ori_fee")
    private BigDecimal taxOriFee;

    @ApiModelProperty(value = "优惠券金额")
    @TableField("coupon_money")
    private BigDecimal couponMoney = BigDecimal.ZERO;
}
